﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ContactUs.ascx.cs" Inherits="Controls_ContactUs" %>
<script type="text/javascript" src="../Scripts/jquery.validate.js"></script>

<div class="gallery">
                <div class="sideBar">
                    <h1>
                        <asp:Label ID="lbAboutus" runat="server" Text="<%$ Resources:lang, ContactUs %>" />
                    </h1>
                </div><!--End .sideBar-->
                <div class="main_gallery">
                    <div class="contact">
                        <h1>
                            <asp:Label ID="lbtSendMail" runat="server" Text="<%$ Resources:lang, SendMail %>" />
                        </h1>
                            <div>
                                <asp:Label ID="Literal6" runat="server" Text="<%$ Resources:lang, Name %>" CssClass="label"/>:
                                <asp:TextBox ID="txtName" runat="server" class="text"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RQName" runat="server" 
                                    ControlToValidate="txtName" ForeColor="#669900" ValidationGroup="g9">Tên không được để trống!</asp:RequiredFieldValidator>
                            </div>
                            <div>
                                
                                <asp:Label ID="Literal2" runat="server" Text="<%$ Resources:lang, Address %>" CssClass="label"/>:
                                <asp:TextBox ID="txtAddress" runat="server" class="text"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RQAddress" runat="server" 
                                    ControlToValidate="txtAddress" ErrorMessage="Địa chỉ không được để chống." 
                                    ValidationGroup="g9" ForeColor="#669900">Nhập địa chỉ</asp:RequiredFieldValidator>
                            </div>
                            <div>
                                <asp:Label ID="Literal1" runat="server" Text="<%$ Resources:lang, Email %>" CssClass="label"/>:
                                <asp:TextBox ID="txtEmail" runat="server" class="text"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RQEmail" runat="server" 
                                    ControlToValidate="txtEmail" ValidationGroup="g9" ForeColor="#669900">Nhập Email</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="REEmail" runat="server" 
                                    ControlToValidate="txtEmail" 
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                    ValidationGroup="g9" ForeColor="#669900">Email không hợp lệ</asp:RegularExpressionValidator>
                            </div>
                            <div>
                                 <asp:Label ID="Literal3" runat="server" Text="<%$ Resources:lang, Phone %>" CssClass="label"/>:
                                <asp:TextBox ID="txtPhone" runat="server" class="text"></asp:TextBox>
                                 <asp:RequiredFieldValidator ID="RQPhone" runat="server" 
                                     ControlToValidate="txtPhone" ValidationGroup="g9" ForeColor="#669900">Nhập số điện thoại</asp:RequiredFieldValidator>
                                 <asp:RegularExpressionValidator ID="REPhone" runat="server" 
                                     ControlToValidate="txtPhone" ValidationExpression="^\d{9,11}$" 
                                     ValidationGroup="g9" ForeColor="#669900">Số điện thoại không hợp lệ</asp:RegularExpressionValidator>
                            </div>
                            <div>
                                <asp:Label ID="Literal4" runat="server" Text="<%$ Resources:lang, Title %>" CssClass="label"/>:
                                <asp:TextBox ID="txtTitle" runat="server" class="text2"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RETitle" runat="server" 
                                    ControlToValidate="txtTitle" ValidationGroup="g9" ForeColor="#669900">Nhập tiêu đề</asp:RequiredFieldValidator>
                            </div>
                            <div>
                                 <asp:Label ID="Literal5" runat="server" Text="<%$ Resources:lang, Content %>" CssClass="label"/>:
                                 <textarea id="txtContent" rows="15" cols="20" runat="server" ></textarea>
                                 <asp:RequiredFieldValidator ID="REnoiDung" runat="server" 
                                     ControlToValidate="txtContent" ValidationGroup="g9" ForeColor="#669900">Nhập nội dung</asp:RequiredFieldValidator>
                            </div>
                            <div>
                                <label class="label">&nbsp;</label>
                                <asp:Button ID="btnOk" runat="server" Text="<%$ Resources:lang, btnSend %>" 
                                    class="button" onclick="btnOk_Click" ValidationGroup="g9"/>
                                <asp:Button ID="btnCancel" runat="server" 
                                    Text="<%$ Resources:lang, btnReset %>" class="button" 
                                    onclick="btnCancel_Click"/>
                            </div>
                    </div><!--End .contact-->
                </div><!--End .main_gallery-->
            </div>